<?php
namespace app\index\controller;
use app\index\controller\Basic;
use think\Db;
use think\Config;
use think\Captcha;
class Index extends Basic{
	public function _initialize(){
		parent::_initialize();
	}
    public function index($id = 0){

    	//echo filemtime(CORE_PATH.'Loader'.EXT);
        $this->assign('cfg', $this->cfg);

        $this->assign('isindex','y');
       	return $this->fetch();
    }
    public function captchacode(){
        $captcha = new Captcha((array)Config::get('captcha'));
        return $captcha->entry();
    }
}
